/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package sv.edu.ufg.mir.geometria;

/**
 *
 * @author javaee
 */
public class Triangulo {
    private double altura;
    private double base;
    private double area;
    private double perimetro;
    private double lado1;
    private double lado2;
    private double lado3;


    public Triangulo() {
        this.altura =0.0;
        this.base=0.0;
        this.area=0.0;
        this.perimetro=0.0;
    }

    public Triangulo(double altura, double base) {
        this.altura =altura;
        this.base=base;
        this.area=0.0;
        this.perimetro=0.0;
        
    }

    public double getAltura() {
        return altura;
    }

    public double getBase() {
        return base;
    }

    public void setAltura(double altura) {
        this.altura = altura;
    }

    public void setBase(double base) {
        this.base = base;
    }

       
     public double calcularArea()
    {
      this.area = (this.altura*this.base)/2;
      return this.area;
    }    
    
    
}
